/*-------------------------------------------------------------------------
   File :         ERP142.tpl
   Project :      VeriFone CPAC application
   Description :  Reports 1 Formater File in English for 42 column printers

***************** Modification History ***********************************

$Log: /SoftPay/SPK2SIM/Source/Projects/CPAC/TPL/ERP142.tpl $
 
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
/* Header 1 - 10 */


1:"\G0,50;"
2&x00000001:1.41,\N\CsrRcpt.szHeaderLine
/* 3&x00000004:1.41,\N\CsrRcpt.szHeaderLine2 FOR PERMATA */
4&x00000010:1.41,\N\CsrRcpt.szHeaderLine3
5&x00000040:1.41,\N\CsrRcpt.szHeaderLine4
6&x00000100:1.41,\N\CsrRcpt.szHeaderLine5
/*7&x00000400:1.41,\N\CsrRcpt.szHeaderLine6*/

/* Settle Report Top 21 - 30 */

22&x40000000:1.41,\H\C"DEMO"
23:\N"DATE/TIME   : ";srRcpt.szDate;"         ";srRcpt.szTime
24:\N"MID:";srRcpt.szMerchantId;23.26,"TID:";srRcpt.szTermId

26:\N"BATCH NUM   : ";srRcpt.szBatchNum%0;23.28,"HOST: ";srRcpt.szHostName
28&x20000000:1.41,\C\H"SETTLEMENT REPORT"
28&x10000000:1.41,\C\H"BATCH HISTORY REPORT"
29:\N""
30:\N""


/* Settle Report Bottom 31 - 40 */
/*31:1,\NsrRcpt.szSpecialMessage;*/
32:"Sales  :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szDebitCount;23.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szDebitTotal;
33:\D"Refunds:";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szCreditCount;23.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szCreditTotal;
/*34:"Voids  :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szAdjustCount;23.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szAdjustTotal;*/
35:"Total  :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szNetCount;23.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szNetTotal;
36:\N""
37&x01000000:12,\H\D"  Settlement Failed  ";\N""
37&x02000000:1.42,\H\C"Settlement Successful";\N""
37:12,\H\D"  Settlement Failed  ";\N""
38&x00400000:1.42,\N\C"Comm Error"
/* 39:1.42,\N\CsrRcpt.szStatusMessage; */
40&x07000000:"\P"
40:\N""

50:\N"CREDIT:"
51:\N"CARDTYPE        COUNT              AMT "
52:\NsrRcpt.unFrm.srSummary.srMid.szCType;20.23,srRcpt.unFrm.srSummary.srMid.szNetCount;24.42,srRcpt.unFrm.srSummary.srMid.szNetTotal
53:\N"-----------------------------------------"
54:\N"TOTALS";20.23,srRcpt.unFrm.srSummary.srMid.szNetCount;24.42,srRcpt.unFrm.srSummary.srMid.szNetTotal

/* Batch History Report Top 81 - 90 */

81&x10000000:1.41,\C\H"BATCH HISTORY REPORT"
82:\N""
83:9.20,\NsrRcpt.szDate;23.30,srRcpt.szTime
84:1.40,\CsrRcpt.szTermId
86:\N""
87&x40000000:1.41,\H\C"DEMO"
88&x40000000:\N""

89:1.29,\C"Batch Num:";srRcpt.szBatchNum
90:1.29,\C"Host     :";srRcpt.szHostName
91:\N""

/* Batch History Report Bottom 91 - 100 */

92:"Sales   :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szDebitCount;24.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szDebitTotal;
93:\D"Refunds :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szCreditCount;24.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szCreditTotal;
94:"Total   :";15.23,\RsrRcpt.unFrm.srSubTotal.srTerm.szNetCount;24.41,\RsrRcpt.unFrm.srSubTotal.srTerm.szNetTotal;
95:\N""
96&x01000000:10,\H"  Settlement Failed  "
96&x02000000:1.40,\H\C"Settlement Successful"
97&x00400000:13,\N\D"  Comm Error  "
/* 98&x01000000:5.35,\N\D\CsrRcpt.szStatusMessage;
98&x02000000:5.35,\N\CsrRcpt.szStatusMessage; */
99&x07000000:\N"\P"
99:\N""



/* Detail Report Top 101 - 110 */

101&x80000000:1.41,\C\H"DETAIL REPORT"
102&x40000000:1.41,\H\C"DEMO"
103&x00800000:1.41,\N\C\HsrRcpt.szMerchantName;
104&x00040000:1.39,\N\H\C"Currency ";22,srRcpt.unFrm.srDet.srMid.szCSymbol

106:\N""

107:"TT Acct #";13.16,srRcpt.szClerkId;23,"Sale       Total"

108&x00000800:" Inv #           Cash Back      Tip"
108&x00000400:" Inv #                          Tip"
108&x00000200:" Inv #           Cash Back"
108&x00000100:" Inv #"


109:"----------------------------------------"

/* Detail Report Middle 111 - 114 */


/* 111&00800000:\NsrRcpt.unFrm.srDet.srMid.szCType;10.29,srRcpt.unFrm.srDet.srMid.szAcctNum */
111&00800000:\NsrRcpt.unFrm.srDet.srMid.szTotalTaxAmt;25.42,srRcpt.unFrm.srDet.srMid.szTotalCBAmt
111:\NsrRcpt.unFrm.srDet.srMid.szTotalTaxAmt;25.42,srRcpt.unFrm.srDet.srMid.szTotalCBAmt
112:\NsrRcpt.unFrm.srDet.srMid.szExpDate;25.42,srRcpt.unFrm.srDet.srMid.szInvNum
113:\NsrRcpt.unFrm.srDet.srMid.szTransType;25.42,srRcpt.unFrm.srDet.srMid.szTot
114:\NsrRcpt.unFrm.srDet.srMid.szApprovalCode
115:""
/* 111:\NsrRcpt.unFrm.srDet.srMid.szTransType;"  ";srRcpt.unFrm.srDet.srMid.szCType;"  ";srRcpt.unFrm.srDet.srMid.szAcctNum;"  ";srRcpt.szClerkId;srRcpt.szAmt;" ";srRcpt.unFrm.srDet.srMid.szTot;srRcpt.szTranStatus;
112&x00800000:1.6,\DsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt; 
112:1.6,\NsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt;*/

/* 111&x00800000:\N\D"LEN";srRcpt.unFrm.srDet.srMid.szTransType;4,srRcpt.unFrm.srDet.srMid.szCType;6,srRcpt.unFrm.srDet.srMid.szAcctNum;12.15,\RsrRcpt.szClerkId;18.26,\RsrRcpt.szAmt;28.38,\RsrRcpt.unFrm.srDet.srMid.szTot;40,srRcpt.szTranStatus;
111:\N"LEN!";srRcpt.unFrm.srDet.srMid.szTransType;4,srRcpt.unFrm.srDet.srMid.szCType;6,srRcpt.unFrm.srDet.srMid.szAcctNum;12.15,\RsrRcpt.szClerkId;18.26,\RsrRcpt.szAmt;28.38,\RsrRcpt.unFrm.srDet.srMid.szTot;40,srRcpt.szTranStatus;

112&x00800000:1.6,\DsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt;
112:1.6,\NsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt;
113:\N"" */

/* Detail Report Bottom 120 - 130 */
120&x00000008:1.41,\C\H"Grand Totals"
120&x00000004:1.41,\C\H"Currency Totals"
121:\N""
122&x40000000:1.41,\N\H\C"** NO TRANSACTIONS **"
122:2,"Sale Total:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalSaleCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalSaleAmt;

123&x40000000:\N""
123&x08000000:3,"Tip Total:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalTipCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalTipAmt;

124&x40000000:\N""
124&x04000000:3,"Cash Back:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalCBackCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalCBAmt;

125&x40000000:\N""
125&x02000000:3,"Surcharge:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalSurchgCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalSchgAmt;

126&x40000000:\N""
126&x01000000:9,"Tax:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalTaxCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalTaxAmt;

127&x40000000:\N""
127:\N"Rfnd Total:";17.20,\RsrRcpt.unFrm.srDet.srMid.szTotalRefCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szTotalRefund;

128&x40000000:\N""
128&x00000008:7,"Total:";17.20,\RsrRcpt.unFrm.srDet.srMid.szGrandCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szGrandTotal;
128:7,"Total:";17.20,\RsrRcpt.unFrm.srDet.srMid.szGrandCnt;24.38,\RsrRcpt.unFrm.srDet.srMid.szGrandTotal;

129:\N""
130&x80000000:\N""
131&x80000000:\N""
132&x80000000:\N""
133&x80000000:\N""
134&x80000000:\N""
135&x80000000:\N""


/* CPAC Summary Report Top 160 - 170 */
160&x10000000:1.41,\H\C"DUPLICATE";"               "
161&x40000000:1.41,\H\C"DEMO";"             "
162:\N"DATE/TIME   : ";srRcpt.szDate;"         ";srRcpt.szTime
163:\N"MID:";srRcpt.szMerchantId;23.26,"TID:";srRcpt.szTermId

165:\N"BATCH NUM   : ";srRcpt.szBatchNum%0;23.28,"HOST: ";srRcpt.szHostName

167&x08000000:1.41,\C\H"SETTLEMENT REPORT"
167:1.41,\C\H"SUMMARY REPORT"

/* 168:\N"Card    Count        Sale          Total"
168&x00004000:"                                 Tip"
168&x00002000:"               Cash Back"
168&x00001000:"               Cash Back         Tip" */

/* CPAC Summary Report Middle 171 - 185 */
171:\N"Card Name:";srRcpt.unFrm.srSummary.srMid.szCType
172:"                     COUNT          TOTAL"
173&x00000001:\N"SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal;
174&x00000001:\N"REFUNDS";20.23,\RsrRcpt.unFrm.srSummary.srMid.szDebitCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szDebitTotal;
175&x00000001:\N"OFFLINE";20.23,\RsrRcpt.unFrm.srSummary.srMid.szShiftNumber;24.42,\RsrRcpt.unFrm.srSummary.srMid.szSurchrgeTotal;
/* 176&x00000001:\N"EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleSurchrgeTotal;*/
/* 176&x00000010:\N"EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal; */
/* 176&x00000020:\N"ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal; */
/* 176&x00000040:\N"SALE+ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal; */
177&x00000001:\N"VOID SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;
/* 177&x00000010:\N"VOID EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal; */
/* 177&x00000020:\N"VOID ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal; */
/* 177&x00000040:\N"VOID SALE+ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;*/
178&x00000001:\N"VOID REFUND";20.23,\RsrRcpt.unFrm.srSummary.srMid.szReversalCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szReversalTotal;
179:\N"------------------------------------------"
180:\N"CARD TOTALS";20.23,\RsrRcpt.unFrm.srSummary.srMid.szNetCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szNetTotal;
181:\N""
/* END ON 185 CPAC_SUMMARY_MIDDLE_END*/

/* CPAC Summary Report Bottom 186 - 196 */
186:"                     COUNT          TOTAL"
187&x00000001:\N"SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal;
187:\N"SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal;
188&x00000001:\N"REFUNDS";20.23,\RsrRcpt.unFrm.srSummary.srMid.szDebitCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szDebitTotal;
188:\N"REFUNDS";20.23,\RsrRcpt.unFrm.srSummary.srMid.szDebitCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szDebitTotal;
189&x00000001:\N"OFFLINE";20.23,\RsrRcpt.unFrm.srSummary.srMid.szShiftNumber;24.42,\RsrRcpt.unFrm.srSummary.srMid.szSurchrgeTotal;
189:\N"OFFLINE";20.23,\RsrRcpt.unFrm.srSummary.srMid.szShiftNumber;24.42,\RsrRcpt.unFrm.srSummary.srMid.szSurchrgeTotal;
/* 190&x00000001:\N"EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleSurchrgeTotal; */
/* 190&x00000010:\N"EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szEPPSaleSurchrgeTotal; */
/* 190&x00000020:\N"ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal;	*/
/* 190&x00000040:\N"SALE + ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szCreditCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal; */
191&x00000001:\N"VOID SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;
191:\N"VOID SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;
/* 191&x00000010:\N"VOID EPP SALES";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal; */
/* 191&x00000020:\N"VOID ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;	   */
/* 191&x00000040:\N"VOID SALE+ICASH";20.23,\RsrRcpt.unFrm.srSummary.srMid.szAdjustCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal; */
192&x00000001:\N"VOID REFUND";20.23,\RsrRcpt.unFrm.srSummary.srMid.szReversalCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szReversalTotal;
192:\N"VOID REFUND";20.23,\RsrRcpt.unFrm.srSummary.srMid.szReversalCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szReversalTotal;
193:\N"------------------------------------------"
194:\N"TOTALS";20.23,\RsrRcpt.unFrm.srSummary.srMid.szNetCount;24.42,\RsrRcpt.unFrm.srSummary.srMid.szNetTotal;
195:\N""
/* END ON 196 CPAC_SUMMARY_BOTTOM_END */
/* 181:\N""
182&x40000000:1.41,\N\H\C"** NO TRANSACTIONS **"
182:2,"SALES   ";24.39,\RsrRcpt.unFrm.srSummary.srMid.szDebitTotal;
183&x00000008:3,"Tip Total:";24.39,\RsrRcpt.unFrm.srSummary.srMid.szAdjustTotal;
184&x00000004:3,"Cash Back:";24.39,\RsrRcpt.unFrm.srSummary.srMid.szCashBackTotal;
185&x00000002:3,"Surcharge:";24.39,\RsrRcpt.unFrm.srSummary.srMid.szSurchrgeTotal;
186&x00008000:9,"Tax:";24.39,\RsrRcpt.unFrm.srSummary.srMid.szTaxTotal;
187:7,"TOTALS ";20.25,\RsrRcpt.unFrm.srSummary.srMid.szNetCount;20.42,\RsrRcpt.unFrm.srSummary.srMid.szCreditTotal;
188:\N""
 */
/* 191&x80000000:\N"" */
/* CPAC Report FORM FEED 198 - 198 */
198&x80000000:""
198:\P""

/* CPAC Grand Total Label 199 - 200 */
199:\N""
200:\N"GRAND TOTALS :"
/* Open Tab Report Top 201 - 210 */
201:9.20,\NsrRcpt.szDate;23.30,srRcpt.szTime
202:1.41,\CsrRcpt.szTermId
202:\N""

203&x80000000:1.41,\C\H"OPEN TAB REPORT"
/*203&x20000000:1.41,\C\H"UNADJUSTED REPORT"*/

204&x00800000:1.41,\H\C"DEMO"

205:\N""

206&x08000000:1.41,\N\C\H"Server ";23,srRcpt.unFrm.srDet.srMid.szClerkId;
206&x04000000:1.41,\N\C\H"Clerk ";23,srRcpt.unFrm.srDet.srMid.szClerkId;

207:\N""

208:\N"Inv #      Acct #                  Total"
210:\N"----------------------------------------"

/* Open Tab Report Middle 211 - 220 */

211:1.6,\NsrRcpt.unFrm.srOTab.srMid.szInvNum;12.13,\NsrRcpt.unFrm.srOTab.srMid.szCType;14,srRcpt.unFrm.srOTab.srMid.szAcctNum;25.40,\RsrRcpt.szAmt;

/* Open Tab Report Bottom  221 - 230 */

/* 221&x80000000:\N""  */
222&x80000000:1.41,\N\H\C"** NO TRANSACTIONS **"

223&x40000000:\N"\P"

/* CPAC  Customised Bellow  */
/* CPAC Detail Report */
231&x40000000:1.41,\H\C"DEMO"
232&x40000000:\N""
233:\N"DATE/TIME   : ";srRcpt.szDate;"         ";srRcpt.szTime
234:\N"MID:";srRcpt.szMerchantId;23.26,"TID:";srRcpt.szTermId

236:\N"BATCH NUM   : ";srRcpt.szBatchNum%0;23.28,"HOST: ";srRcpt.szHostName

239:\N""
240:1.41,\C\H"DETAIL REPORT"
241:\N"CARD NAME                 CARD NUMBER"
242:\N"EXP DATE                  INVOICE NUM"
244:\N"TRANSACTION               AMOUNT"
245:\N"APPROVAL CODE" 
246:\N"----------------------------------------"


/* 251&x00800000:\N\D;srRcpt.unFrm.srDet.srMid.szTransType;4,srRcpt.unFrm.srDet.srMid.szCType;6,srRcpt.unFrm.srDet.srMid.szAcctNum;12.15,\RsrRcpt.szClerkId;18.26,\RsrRcpt.szAmt;28.38,\RsrRcpt.unFrm.srDet.srMid.szTot;40,srRcpt.szTranStatus; */
/* 251:\N;srRcpt.unFrm.srDet.srMid.szTransType;srRcpt.unFrm.srDet.srMid.szCType;srRcpt.unFrm.srDet.srMid.szAcctNum;srRcpt.szClerkId;srRcpt.szAmt;srRcpt.unFrm.srDet.srMid.szTot;srRcpt.szTranStatus; */

/* 251:\N;srRcpt.unFrm.srDet.srMid.szTransType;srRcpt.unFrm.srDet.srMid.szCType;srRcpt.unFrm.srDet.srMid.szAcctNum;12.15,\RsrRcpt.szClerkId;18.26,\RsrRcpt.szAmt;28.38,\RsrRcpt.unFrm.srDet.srMid.szTot;40,srRcpt.szTranStatus;*/

252&x00800000:1.6,\DsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt;
252:1.6,\NsrRcpt.unFrm.srDet.srMid.szInvNum;18.26,\RsrRcpt.unFrm.srDet.srMid.szCashBack;27.35,\RsrRcpt.szTipAmt;
253&x00000004:\N"SOC NUM     : ";srRcpt.unFrm.srReceipt.szGenBuf2
253&x00000002:\N"SOC NUM     : ";srRcpt.unFrm.srReceipt.szGenBuf2
